package com.cy.personer.mapper;

import com.cy.personer.bean.FirstMenu;
import com.cy.personer.bean.Role;
import com.cy.personer.bean.SecondMenu;
import org.springframework.stereotype.Repository;

import javax.servlet.http.HttpServletRequest;
import java.util.List;
import java.util.Map;

@Repository
public interface PowerMapper {
    public List<Role> querys(); //查询出所有角色
    List<FirstMenu>firstList();  //查询出所有一级菜单
    List<SecondMenu>secondList(); //查询出所有二级菜单
    List<SecondMenu>queryList(int roleId);  //查询出所有二级菜单的ID
    /**
     * 删除菜单
     * @author whl
     */
    boolean del(int roleId);
    /**
     * 添加菜单
     * @author whl
     */
    boolean add(Map<String,Object>map);

}
